package cn.vc.media.feign.clients;

import cn.vc.basicmodule.entity.Result;
import cn.vc.media.entity.po.MediaFiles;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author mo
 * @Description:
 * @日期: 2024-04-11 15:16
 **/
@FeignClient("media-service")
public interface MediaFilesClient {
    @GetMapping("/media/mediafiles")
    Result<MediaFiles> selectById(@RequestParam("id") Long id);

    @PostMapping("/media/mediafiles/2")
    List<MediaFiles> selectByIds(@RequestBody List<Long> ids);
}
